﻿@model IEnumerable<VehicleManagement.Models.Apply>

@{
    ViewBag.Title = "用车申请";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@*<h2>我的用车申请表</h2>*@

<div class="mas">
<div class="toptitle">
  申请人平台
</div>
@*<div class="car"></div>*@
@Html.Partial("_PartviewApply")
<div class="rightshow">
        <div class="classifyinfo">
            <div class="system-location">
                <a>申请系统</a>>><a>申请表状态</a>
            </div>
            <div class="system-Userinfo">
                <span class="space">当前用户:</span><a>张测试</a><span class="space">部门:</span><a>技术部</a><a class="space">退出</a>
            </div>
            <div class="clear"></div>
        </div>   
        <div class="apply_content">
        	<div class="myapply-title">     
        </div>
                    <div class="createrecord">
                <div class="createrecord_bc">
                    <div class="createrecord_bc1"> @Html.ActionLink("新建申请表", "CreateApply")</div>
                </div>
            </div>
                    <div class="apply_cn1">
                <div class="apply_cn1-item">
                    人员条件筛选：
                </div>
                @using (Html.BeginForm("MyApplys", "Apply"))
                {
                    <div class="apply_cn1-item1">
                        @*<select id="sort-bar-itemSelect1" name="车辆类型">
                        <option>货车</option>
                        <option>客车</option>
                        <option>轿车</option>
                    </select>*@
                        <input id="key1" name="carUse" type="text" value="申请用途" class="ipt-2" />
                    </div>
                    <div class="apply_cn1-item1">
                        @*<select id="sort-bar-itemSelect2">
                        <option>今天</option>
                    </select>*@
                        <input id="key2" name="carType" type="text" value="车辆类型" class="ipt-2" />
                    </div>
                    <div class="apply_cn1-item1">
                        <select id="sort-bar-itemSelect3" name="applyState">
                            <option selected="selected">申请状态</option>
                            <option>未审批</option>
                            <option>已审批</option>
                        </select>
                    </div>
                    <div class="apply_cn1-item2">
                        <input id="Text3" name="key" type="text" value="模糊查找" class="apply_cn1-item2_itp1" /><input
                            type="submit" value="" class="apply_cn1-item2_btn1" />
                    </div>
                }
                <div class="clear"></div>
            </div>

        </div>

<table id="applytable" cellspacing="0">
    <tr>
        <th>
            申请人
        </th>
        <th>
            车辆类型
        </th>
        <th>
            申请时间
        </th>
        <th>
            申请用途
        </th>
        <th>
            申请状态
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ApplicantName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CarType)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ApplyTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CarUse)
        </td>
        <td>
             @Html.DisplayFor(modelItem => item.ApplyState)
        </td>
        <td id="myapplytabletd">
        <div class="myapplytable_dt">
         @Html.ActionLink("编辑", "EditApply", new { id = item.ApplyID })	
        </div>
        <div class="myapplytable_dt">
         @Html.ActionLink("详细", "ApplyDetails", new { id = item.ApplyID })
        </div>   
        <div class="myapplytable_dt">
        <a href="javascript:void(0)" onclick="DeleteApply(@item.ApplyID)">删除</a>
        </div>
          
        </td>
    </tr>
}

</table>

</div>

<div class="clear"></div>
	
</div>
